package com.example.helloandroid;

import java.util.LinkedList;

public class Human extends Player{
	
	boolean isHuman()
	{
		return true;
	}
	
	void showCards()
	{
		// Display cards
	}
	
	LinkedList<Card> getMove(int val)
	{
		LinkedList<Card> removedCards = new LinkedList<Card>();
		
		// ** NEED TO IMPLEMENT THIS ** get user input for cards to remove
		for(int i = 0; i < hand.size(); i++)
		{
			if(hand.get(i).getValue() == val)
			{
				Card card = new Card();
				card.set(hand.get(i).getType(), hand.get(i).getValue());
				removedCards.add(card);
				hand.remove(i);				// Remove card from player's hand
			}
		}
		
		// Return cards that user is throwing away.
		return removedCards;
	}
}
